<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <script src="../../lib/js/jquery.min.js"></script>
  <script src="../../lib/js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="../../lib/css/bootstrap.min.css">
  <link rel="stylesheet" href="../../css/admin.css">
  <link rel="stylesheet" href="../../css/common.css">
  <title>Title</title>
</head>
<body>
<div class="admin-item">
  <!-- Button trigger modal -->
  <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
    Launch demo modal
  </button>

  <h2>复制第一个节点</h2>
  <div class="panel panel-default js-copy-first">
    <div class="panel-heading" style="overflow: hidden">panel-default <div class="pull-right">
      <button class="btn btn-default add-btn">复制</button>
      <button class="btn btn-default delete-btn">删除</button>
    </div></div>
    <div class="panel-body">
      <ul class="list-unstyled copy-list">
        <li class="copy-item">123123123123</li>
      </ul>
    </div>
  </div>

  <h2>上传</h2>
  <div class="upload-demo img-select"></div>

  <div data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</d>

  <h2>下拉</h2>
  <div class="dropdown">
    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown">
      dropdown
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
      <li><a href="#">Action</a></li>
      <li><a href="#">Another action</a></li>
      <li><a href="#">Something else here</a></li>
      <li role="separator" class="divider"></li>
      <li><a href="#">Separated link</a></li>
    </ul>
  </div>

  <!-- Modal -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">Modal title</h4>
        </div>
        <div class="modal-body">
          <form class="form-horizontal">
            <div class="form-group">
              <label class="col-sm-2 control-label">text</label>
              <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="text">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">text</label>
              <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="text">
              </div>
            </div>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="../../js/common.js"></script>
<script>
  $.coypFirst();
  $(".upload-demo").uploadImg({
    callback: function (file) {
      console.log('123', file)
    }
  });
</script>
</body>
</html>